package com.yjd.comm.borrow.service;

import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.borrow.dto.SavePicsDataDto;
import com.yjd.comm.borrow.model.BorrowDataModel;
import com.yjd.comm.system.dto.OperParamDto;

/**
 * <b>description</b>：借款信息(扩展信息)业务接口<br>
 * <b>time</b>：2014-11-12 11:17:12 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public interface IBorrowDataService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public BorrowDataModel insert(BorrowDataModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(BorrowDataModel model) throws Exception;

	/**
	 * 根据map更新数据
	 * 
	 * @param map
	 * @return
	 * @throws Exception
	 */
	@SuppressWarnings("rawtypes")
	public int updateByMap(Map map) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param borrow_id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long borrow_id) throws Exception;

	/**
	 * 保存打码认证材料
	 * 
	 * @param picsDataDto
	 * @param operParamDto
	 * @return
	 * @throws Exception
	 */
	public int savePicsData(SavePicsDataDto picsDataDto,
			OperParamDto operParamDto) throws Exception;

}
